package com.africanmoviesmobile.webservice;

import org.json.JSONObject;

import android.content.Context;

import com.africanmoviesmobile.webservice.inf.Country;

public class AmmCountry extends AmmWebService implements Country {

	private JSONObject _jsonObject;
	
	public AmmCountry(JSONObject jsonObject, Context context) {
		super(context);
		_jsonObject = jsonObject;
	}

	public int getId() {
		return _jsonObject.optInt("country_id");
	}

	public String getName() {
		return _jsonObject.optString("name");
	}

}
